{include file='fcworker/fc_head'}

        <script src="{$_G['URL']['WORKER_CSS']}js/lCalendar.js"></script>
        <link rel="stylesheet" href="{$_G['URL']['WORKER_CSS']}css/lCalendar.css">
        
 	<a href="/{php echo createMobileUrl('w_index',array('themeid'=>$themeid));}" class="homeTag"><img src="{$_G['URL']['FCWORK_CSS']}images/homeBtn.png"></a>
	<div class="banner">
    	<a href="javascript:history.go(-1)" class="backBtn"><img src="{$_G['URL']['FCWORK_CSS']}images/back.png"></a>
        <form action="/{php echo createMobileUrl('w_rank',array('themeid'=>$themeid,'op'=>'search'));}" method="post"> 
        <div class="choseTime">
            <div class="dataChose">
                <span>开始</span><input id="demo1" type="text" readonly="" name="starttime" placeholder="开始时间" data-lcalendar="{php echo date('Y')-1;}-01-01,{php echo date('Y')+1;}-12-31" value="{$starttime}" />
            </div>
            <div class="dataChose">
                <span>结束</span><input id="demo2" type="text" readonly="" name="endtime" placeholder="结束时间" data-lcalendar="{php echo date('Y')-1;}-01-01,{php echo date('Y')+1;}-12-31" value="{$endtime}" />
            </div>
        </div>
        <button class="searchBtn" type="sumbit"></button>
        </form>
    </div>
    {if !($config['isxianxia']==1 || $config['isshowxianxia']==1)}
    <style type="text/css">
       .listTit span { width: 25%; }
       .tpList li span {width: 25%;}
    </style>
    {/if}
    <div class="contant">
        <div {if $system['ruanjian']==3 && ($config['showshop']==0 || $myworker['level'] == '1') }
            class="choseBox3" 
            {else}
            class="choseBox" 
            {/if}>
            {if $op == 'search' }
                <span class="on">个人期间排名</span>
                <span>团队期间排名</span>
                {if $system['ruanjian']==3 && ($config['showshop']==0 || $myworker['level'] == '1') }
                <span>联盟期间排名</span>
                {/if}
            {else}
                <span class="on">个人总排名</span>
                <span>团队总排名</span>
                {if $system['ruanjian']==3 && ($config['showshop']==0 || $myworker['level'] == '1') }
                <span>联盟总排名</span>
                {/if}
                <span>个人今日排名</span>
                <span>团队今日排名</span>
                {if $system['ruanjian']==3 && ($config['showshop']==0 || $myworker['level'] == '1') }
                <span>联盟今日排名</span>
                {/if}
            {/if}
        </div>
        <div class="choseBar">

            <div class="tpList" >
                <div class="listTit">
                    <span >排名</span>
                    <span >姓名</span>
                    {if $show=='tuiguang'}
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'show'=>'tuiguang','paixu'=>''));}"><span {if $paixu==''}class="blue"{else}style="color: #000000;"{/if}>新粉丝</span></a>
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'show'=>'tuiguang','paixu'=>'zf'));}"><span {if $paixu=='zf'}class="blue"{else}style="color: #000000;"{/if}>转发</span></a>
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'show'=>'tuiguang','paixu'=>'ll'));}"><span {if $paixu=='ll'}class="blue"{else}style="color: #000000;"{/if}>浏览</span></a>
                    {else}
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'','starttime'=>$starttime,'endtime'=>$endtime,'op'=>$op));}"><span {if $paixu==''}class="blue"{else}style="color: #000000;"{/if}>{if $config['isxianxia']==1 || $config['isshowxianxia']==1}线上{/if}成交</span></a>
                        {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'xx','starttime'=>$starttime,'endtime'=>$endtime,'op'=>$op));}"><span {if $paixu=='xx'}class="blue"{else}style="color: #000000;"{/if}>线下</span></a>
                        {/if}
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'fee','starttime'=>$starttime,'endtime'=>$endtime,'op'=>$op));}"><span {if $paixu=='fee'}class="blue"{else}style="color: #000000;"{/if}>业绩</span></a>
                    {/if}
                </div>
                <ul>
                    {loop $workerlist $index $item}
                    <li {if $index==0 }style="border-top: 1px solid #e0e0e0;"{/if}>{if $index <3}
                        <span><img src="{$_G['URL']['FCWORK_CSS']}images/icon{php echo $index+1;}.png"></span>
                        {else}
                        <span>{php echo $index+1;}</span>
                        {/if}
                        <span>{php echo mb_substr($item['name'],0,4,'utf-8');}</span>
                        {if $show=='tuiguang'}
                            <span {if $paixu==''}class="blue"{/if}>{$item['newfans']}</span>
                            <span {if $paixu=='zf'}class="blue"{/if}>{$item['forward']}</span>
                            <span {if $paixu=='ll'}class="blue"{/if}>{$item['scansum']}</span>
                        {else}
                            <span {if $paixu==''}class="blue"{/if}>{$item['record']}</span>
                            {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                            <span {if $paixu=='xx'}class="blue"{/if}>{$item['recordxx']}</span>
                            {/if}
                            <span {if $paixu=='fee'}class="blue"{/if}>{$item['fee']}</span>
                        {/if}
                    </li>
                    {/loop}       
                </ul>
            </div>



            <div class="tpList" style="display: none;">
                <div class="listTit">
                    <span >排名</span>
                    <span >姓名</span>
                    {if $show=='tuiguang'}
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'show'=>'tuiguang','paixu'=>''));}"><span {if $paixu==''}class="blue"{else}style="color: #000000;"{/if}>新粉丝</span></a>
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'show'=>'tuiguang','paixu'=>'zf'));}"><span {if $paixu=='zf'}class="blue"{else}style="color: #000000;"{/if}>转发</span></a>
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'show'=>'tuiguang','paixu'=>'ll'));}"><span {if $paixu=='ll'}class="blue"{else}style="color: #000000;"{/if}>浏览</span></a>
                    {else}
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'','starttime'=>$starttime,'endtime'=>$endtime,'op'=>$op));}"><span {if $paixu==''}class="blue"{else}style="color: #000000;"{/if}>{if $config['isxianxia']==1 || $config['isshowxianxia']==1}线上{/if}成交</span></a>
                        {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'xx','starttime'=>$starttime,'endtime'=>$endtime,'op'=>$op));}"><span {if $paixu=='xx'}class="blue"{else}style="color: #000000;"{/if}>线下</span></a>
                        {/if}
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'fee','starttime'=>$starttime,'endtime'=>$endtime,'op'=>$op));}"><span {if $paixu=='fee'}class="blue"{else}style="color: #000000;"{/if}>业绩</span></a>
                    {/if}
                </div>
                <ul>
                    {loop $teamlist $index $item}
                    <li {if $index==0 }style="border-top: 1px solid #e0e0e0;"{/if}>{if $index <3}
                        <span><img src="{$_G['URL']['FCWORK_CSS']}images/icon{php echo $index+1;}.png"></span>
                        {else}
                        <span>{php echo $index+1;}</span>
                        {/if}
                        <span>{php echo mb_substr($item['name'],0,4,'utf-8');}</span>
                        {if $show=='tuiguang'}
                            <span {if $paixu==''}class="blue"{/if}>{$item['newfans']}</span>
                            <span {if $paixu=='zf'}class="blue"{/if}>{$item['forward']}</span>
                            <span {if $paixu=='ll'}class="blue"{/if}>{$item['scansum']}</span>
                        {else}
                            <span {if $paixu==''}class="blue"{/if}>{$item['record']}</span>
                            {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                            <span {if $paixu=='xx'}class="blue"{/if}>{$item['recordxx']}</span>
                            {/if}
                            <span {if $paixu=='fee'}class="blue"{/if}>{$item['fee']}</span>
                        {/if}
                    </li>
                    {/loop}       
                </ul>
            </div>

            {if $system['ruanjian']==3 && ($config['showshop']==0 || $myworker['level'] == '1') }


            <div class="tpList" style="display: none;">
                <div class="listTit">
                    <span >排名</span>
                    <span >姓名</span>
                    {if $show=='tuiguang'}
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'show'=>'tuiguang','paixu'=>''));}"><span {if $paixu==''}class="blue"{else}style="color: #000000;"{/if}>新粉丝</span></a>
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'show'=>'tuiguang','paixu'=>'zf'));}"><span {if $paixu=='zf'}class="blue"{else}style="color: #000000;"{/if}>转发</span></a>
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'show'=>'tuiguang','paixu'=>'ll'));}"><span {if $paixu=='ll'}class="blue"{else}style="color: #000000;"{/if}>浏览</span></a>
                    {else}
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'','starttime'=>$starttime,'endtime'=>$endtime,'op'=>$op));}"><span {if $paixu==''}class="blue"{else}style="color: #000000;"{/if}>{if $config['isxianxia']==1 || $config['isshowxianxia']==1}线上{/if}成交</span></a>
                        {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'xx','starttime'=>$starttime,'endtime'=>$endtime,'op'=>$op));}"><span {if $paixu=='xx'}class="blue"{else}style="color: #000000;"{/if}>线下</span></a>
                        {/if}
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'fee','starttime'=>$starttime,'endtime'=>$endtime,'op'=>$op));}"><span {if $paixu=='fee'}class="blue"{else}style="color: #000000;"{/if}>业绩</span></a>
                    {/if}
                </div>
                <ul>
                    {loop $companylist $index $item}
                    <li {if $index==0 }style="border-top: 1px solid #e0e0e0;"{/if}>{if $index <3}
                        <span><img src="{$_G['URL']['FCWORK_CSS']}images/icon{php echo $index+1;}.png"></span>
                        {else}
                        <span>{php echo $index+1;}</span>
                        {/if}
                        <span>{php echo mb_substr($item['name'],0,4,'utf-8');}</span>
                        {if $show=='tuiguang'}
                            <span {if $paixu==''}class="blue"{/if}>{$item['newfans']}</span>
                            <span {if $paixu=='zf'}class="blue"{/if}>{$item['forward']}</span>
                            <span {if $paixu=='ll'}class="blue"{/if}>{$item['scansum']}</span>
                        {else}
                            <span {if $paixu==''}class="blue"{/if}>{$item['record']}</span>
                            {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                            <span {if $paixu=='xx'}class="blue"{/if}>{$item['recordxx']}</span>
                            {/if}
                            <span {if $paixu=='fee'}class="blue"{/if}>{$item['fee']}</span>
                        {/if}
                    </li>
                    {/loop}       
                </ul>
            </div>
            {/if}

            {if $op != 'search' }
            <div class="tpList" style="display: none;">
                <div class="listTit">
                    <span >排名</span>
                    <span >姓名</span>
                    {if $show=='tuiguang'}
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'show'=>'tuiguang','paixu'=>''));}"><span {if $paixu==''}class="blue"{else}style="color: #000000;"{/if}>新粉丝</span></a>
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'show'=>'tuiguang','paixu'=>'zf'));}"><span {if $paixu=='zf'}class="blue"{else}style="color: #000000;"{/if}>转发</span></a>
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'show'=>'tuiguang','paixu'=>'ll'));}"><span {if $paixu=='ll'}class="blue"{else}style="color: #000000;"{/if}>浏览</span></a>
                    {else}
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'','starttime'=>$starttime,'endtime'=>$endtime,'op'=>$op));}"><span {if $paixu==''}class="blue"{else}style="color: #000000;"{/if}>{if $config['isxianxia']==1 || $config['isshowxianxia']==1}线上{/if}成交</span></a>
                        {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'xx','starttime'=>$starttime,'endtime'=>$endtime,'op'=>$op));}"><span {if $paixu=='xx'}class="blue"{else}style="color: #000000;"{/if}>线下</span></a>
                        {/if}
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'fee','starttime'=>$starttime,'endtime'=>$endtime,'op'=>$op));}"><span {if $paixu=='fee'}class="blue"{else}style="color: #000000;"{/if}>业绩</span></a>
                    {/if}
                </div>
                <ul>
                    {loop $workerlisttoday $index $item}
                    <li {if $index==0 }style="border-top: 1px solid #e0e0e0;"{/if}>{if $index <3}
                        <span><img src="{$_G['URL']['FCWORK_CSS']}images/icon{php echo $index+1;}.png"></span>
                        {else}
                        <span>{php echo $index+1;}</span>
                        {/if}
                        <span>{php echo mb_substr($item['name'],0,4,'utf-8');}</span>
                        {if $show=='tuiguang'}
                            <span {if $paixu==''}class="blue"{/if}>{$item['newfans']}</span>
                            <span {if $paixu=='zf'}class="blue"{/if}>{$item['forward']}</span>
                            <span {if $paixu=='ll'}class="blue"{/if}>{$item['scansum']}</span>
                        {else}
                            <span {if $paixu==''}class="blue"{/if}>{$item['record']}</span>
                            {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                            <span {if $paixu=='xx'}class="blue"{/if}>{$item['recordxx']}</span>
                            {/if}
                            <span {if $paixu=='fee'}class="blue"{/if}>{$item['fee']}</span>
                        {/if}
                    </li>
                    {/loop}       
                </ul>
            </div>

            
            <div class="tpList" style="display: none;">
                <div class="listTit">
                    <span >排名</span>
                    <span >姓名</span>
                    {if $show=='tuiguang'}
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'show'=>'tuiguang','paixu'=>''));}"><span {if $paixu==''}class="blue"{else}style="color: #000000;"{/if}>新粉丝</span></a>
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'show'=>'tuiguang','paixu'=>'zf'));}"><span {if $paixu=='zf'}class="blue"{else}style="color: #000000;"{/if}>转发</span></a>
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'show'=>'tuiguang','paixu'=>'ll'));}"><span {if $paixu=='ll'}class="blue"{else}style="color: #000000;"{/if}>浏览</span></a>
                    {else}
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'','starttime'=>$starttime,'endtime'=>$endtime,'op'=>$op));}"><span {if $paixu==''}class="blue"{else}style="color: #000000;"{/if}>{if $config['isxianxia']==1 || $config['isshowxianxia']==1}线上{/if}成交</span></a>
                        {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'xx','starttime'=>$starttime,'endtime'=>$endtime,'op'=>$op));}"><span {if $paixu=='xx'}class="blue"{else}style="color: #000000;"{/if}>线下</span></a>
                        {/if}
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'fee','starttime'=>$starttime,'endtime'=>$endtime,'op'=>$op));}"><span {if $paixu=='fee'}class="blue"{else}style="color: #000000;"{/if}>业绩</span></a>
                    {/if}
                </div>
                <ul>
                    {loop $teamtoday $index $item}
                    <li {if $index==0 }style="border-top: 1px solid #e0e0e0;"{/if}>{if $index <3}
                        <span><img src="{$_G['URL']['FCWORK_CSS']}images/icon{php echo $index+1;}.png"></span>
                        {else}
                        <span>{php echo $index+1;}</span>
                        {/if}
                        <span>{php echo mb_substr($item['name'],0,4,'utf-8');}</span>
                        {if $show=='tuiguang'}
                            <span {if $paixu==''}class="blue"{/if}>{$item['newfans']}</span>
                            <span {if $paixu=='zf'}class="blue"{/if}>{$item['forward']}</span>
                            <span {if $paixu=='ll'}class="blue"{/if}>{$item['scansum']}</span>
                        {else}
                            <span {if $paixu==''}class="blue"{/if}>{$item['record']}</span>
                            {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                            <span {if $paixu=='xx'}class="blue"{/if}>{$item['recordxx']}</span>
                            {/if}
                            <span {if $paixu=='fee'}class="blue"{/if}>{$item['fee']}</span>
                        {/if}
                    </li>
                    {/loop}       
                </ul>
            </div>


            {if $system['ruanjian']==3 && ($config['showshop']==0 || $myworker['level'] == '1') }

            <div class="tpList" style="display: none;">
                <div class="listTit">
                    <span >排名</span>
                    <span >姓名</span>
                    {if $show=='tuiguang'}
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'show'=>'tuiguang','paixu'=>''));}"><span {if $paixu==''}class="blue"{else}style="color: #000000;"{/if}>新粉丝</span></a>
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'show'=>'tuiguang','paixu'=>'zf'));}"><span {if $paixu=='zf'}class="blue"{else}style="color: #000000;"{/if}>转发</span></a>
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'show'=>'tuiguang','paixu'=>'ll'));}"><span {if $paixu=='ll'}class="blue"{else}style="color: #000000;"{/if}>浏览</span></a>
                    {else}
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'','starttime'=>$starttime,'endtime'=>$endtime,'op'=>$op));}"><span {if $paixu==''}class="blue"{else}style="color: #000000;"{/if}>{if $config['isxianxia']==1 || $config['isshowxianxia']==1}线上{/if}成交</span></a>
                        {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'xx','starttime'=>$starttime,'endtime'=>$endtime,'op'=>$op));}"><span {if $paixu=='xx'}class="blue"{else}style="color: #000000;"{/if}>线下</span></a>
                        {/if}
                        <a href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'fee','starttime'=>$starttime,'endtime'=>$endtime,'op'=>$op));}"><span {if $paixu=='fee'}class="blue"{else}style="color: #000000;"{/if}>业绩</span></a>
                    {/if}
                </div>
                <ul>
                    {loop $companytoday $index $item}
                    <li {if $index==0 }style="border-top: 1px solid #e0e0e0;"{/if}>{if $index <3}
                        <span><img src="{$_G['URL']['FCWORK_CSS']}images/icon{php echo $index+1;}.png"></span>
                        {else}
                        <span>{php echo $index+1;}</span>
                        {/if}
                        <span>{php echo mb_substr($item['name'],0,4,'utf-8');}</span>
                        {if $show=='tuiguang'}
                            <span {if $paixu==''}class="blue"{/if}>{$item['newfans']}</span>
                            <span {if $paixu=='zf'}class="blue"{/if}>{$item['forward']}</span>
                            <span {if $paixu=='ll'}class="blue"{/if}>{$item['scansum']}</span>
                        {else}
                            <span {if $paixu==''}class="blue"{/if}>{$item['record']}</span>
                            {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                            <span {if $paixu=='xx'}class="blue"{/if}>{$item['recordxx']}</span>
                            {/if}
                            <span {if $paixu=='fee'}class="blue"{/if}>{$item['fee']}</span>
                        {/if}
                    </li>
                    {/loop}       
                </ul>
            </div>
            {/if}
            {/if}
        </div>
     </div>
     
    <div class="choseBoxmenu" >
        <a {if $show!='tuiguang'}class="on"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'paixu'=>'','op'=>''));}"><span>查看成交总排名</span></a>
        
        <a {if $show=='tuiguang'}class="on"{/if} href="/{php echo createMobileUrl($do,array('themeid'=>$themeid,'show'=>'tuiguang','paixu'=>'','op'=>''));}"><span >查看推广总排名</span></a>
    </div>
    <div class="item" style="padding: 0.5rem; line-height: 0.4rem;text-align: center;">
        <p>未出现在排行榜中的，代表没有任何数据</p>
        <p style="color: #4490e2">点击业绩等标题可按对应数据排名</p>
        <!-- <p>点击姓名可查该员工的日报</p> -->
        <!-- <p>点击成交数字可查对应数据</p> -->
    </div>
 </body>

        <script>
            $('.lm_table tr').click(function(){
                console.log(1);
                $(this).next('.sib').toggle();
            })
            var calendardatetime = new lCalendar();
            calendardatetime.init({
                'trigger': '#demo1',
                'type': 'datetime'
            });
            var calendardatetime2 = new lCalendar();
            calendardatetime2.init({
                'trigger': '#demo2',
                'type': 'datetime'
            });
        </script>
 <script>

    $('.choseBox span').click(function(){
        var num = $(this).index();
        $('.choseBar .tpList').eq(num).show().siblings().hide();
        $(this).addClass('on').siblings().removeClass('on');
    })
    $('.choseBox3 span').click(function(){
        var num = $(this).index();
        $('.choseBar .tpList').eq(num).show().siblings().hide();
        $(this).addClass('on').siblings().removeClass('on');
    })
    $(window).scroll(function(){
      var scrolTop = $(window).scrollTop();
      var spaceHeight = $('.choseBar').offset().top;
      var padingSpace = $('.listTit').height();
      if(scrolTop>spaceHeight){
       $('.listTit').addClass('posFixed');
       $('.tpList').css('padding-top',padingSpace)
      }else{
       $('.listTit').removeClass('posFixed');
       $('.tpList').css('padding-top','0')
      }
     })
 </script>
</html>
